import request from '@/utils/request'

export const getVideoData = (lessonId: number) => {
  return request.get(`/api/courses/lessons/${lessonId}/video`)
}

export const updateVideoProgress = (lessonId: number, progress: number) => {
  return request.post(`/api/courses/lessons/${lessonId}/progress`, { progress })
}

export const getLessonDetails = (lessonId: number) => {
  return request.get(`/api/courses/lessons/${lessonId}`)
}